package demo02.service.impl;

import demo02.entity.User;
import demo02.mapper.UserMapper;
import demo02.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author RDSunday
 * @create 2020-08-21 14:51
 **/

@Service
public class UserServiceImpl implements UserService {
    @Autowired(required = false)
    private UserMapper userMapper;
    public List<User> selectAllUserService() {
        List<User> userList = userMapper.selectAllUser();
        return userList;
    }
}
